import Vue from 'vue'
import App from './App'
import http from '@/utils/http.js'

Vue.config.productionTip = false

App.mpType = 'app'

import {router,RouterMount} from '@/router/router.js'
Vue.use(router)

// 封装请求
Vue.prototype.$http = http

// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);

const app = new Vue({
    ...App
})

// #ifdef H5
RouterMount(app,router,'#app')
// #endif

// #ifndef H5
	app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
